﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;
using Clothing.Option.Login;

namespace Clothing.Option.Login
{
        static class Program
        {
            /// <summary>
            /// 应用程序的主入口点。
            /// </summary>
            [STAThread]
            static void Main()
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Process[] p = Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName);
                if (p.Length > 1)
                {
                    Application.Exit();
                }
                else
                Application.Run(new LoginForm());          
            }
        }
}
